.class public Les/a70;
.super Les/s80;
.source "ESCreateMusicListTask.java"


# instance fields
.field private D:Lcom/estrongs/fs/f;

.field private E:I

.field private F:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field G:Ljava/util/LinkedList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/LinkedList<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private H:Z

.field I:Ljava/text/Collator;


# direct methods
.method public constructor <init>(Lcom/estrongs/fs/f;ILjava/util/List;Z)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/estrongs/fs/f;",
            "I",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;Z)V"
        }
    .end annotation

    .line 1
    invoke-direct {p0}, Les/s80;-><init>()V

    .line 2
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Les/a70;->G:Ljava/util/LinkedList;

    .line 3
    invoke-static {}, Ljava/text/Collator;->getInstance()Ljava/text/Collator;

    move-result-object v0

    iput-object v0, p0, Les/a70;->I:Ljava/text/Collator;

    .line 4
    iput-object p1, p0, Les/a70;->D:Lcom/estrongs/fs/f;

    .line 5
    iput p2, p0, Les/a70;->E:I

    .line 6
    iput-object p3, p0, Les/a70;->F:Ljava/util/List;

    .line 7
    iput-boolean p4, p0, Les/a70;->H:Z

    return-void
.end method

.method private b(Ljava/util/List;)V
    .locals 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 1
    :try_start_0
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    const/4 v1, 0x0

    .line 2
    :goto_0
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v2

    if-ge v1, v2, :cond_b

    .line 3
    invoke-virtual {p0}, Les/s80;->z()Z

    move-result v2

    if-eqz v2, :cond_0

    return-void

    .line 4
    :cond_0
    invoke-virtual {v0}, Ljava/util/LinkedList;->clear()V

    .line 5
    iget-object v2, p0, Les/a70;->D:Lcom/estrongs/fs/f;

    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    invoke-virtual {v2, v3}, Lcom/estrongs/fs/f;->l(Ljava/lang/String;)Z

    move-result v2

    const/4 v3, 0x1

    if-eqz v2, :cond_6

    .line 6
    iget-object v2, p0, Les/a70;->D:Lcom/estrongs/fs/f;

    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    invoke-virtual {v2, v4, v3}, Lcom/estrongs/fs/f;->b(Ljava/lang/String;Z)Ljava/util/List;

    move-result-object v2

    if-nez v2, :cond_1

    goto/16 :goto_3

    .line 7
    :cond_1
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_2
    :goto_1
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_8

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/estrongs/fs/g;

    .line 8
    invoke-interface {v4}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v5

    .line 9
    invoke-interface {v4}, Lcom/estrongs/fs/g;->i()Lcom/estrongs/fs/l;

    move-result-object v4

    invoke-virtual {v4}, Lcom/estrongs/fs/l;->b()Z

    move-result v4

    if-eqz v4, :cond_4

    .line 10
    invoke-static {v5}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const-string v6, "."

    .line 11
    invoke-virtual {v4, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-nez v6, :cond_2

    const-string v6, ".."

    invoke-virtual {v4, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_3

    goto :goto_1

    .line 12
    :cond_3
    iget-boolean v4, p0, Les/a70;->H:Z

    if-eqz v4, :cond_2

    .line 13
    invoke-virtual {v0, v5}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 14
    :cond_4
    iget v4, p0, Les/a70;->E:I

    if-nez v4, :cond_5

    invoke-static {v5}, Les/a70;->b(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_5

    .line 15
    iget-object v4, p0, Les/a70;->G:Ljava/util/LinkedList;

    invoke-virtual {v4, v5}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 16
    :cond_5
    iget v4, p0, Les/a70;->E:I

    if-ne v4, v3, :cond_2

    .line 17
    invoke-static {v5}, Lcom/estrongs/android/util/n0;->Q(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_2

    .line 18
    iget-object v4, p0, Les/a70;->G:Ljava/util/LinkedList;

    invoke-virtual {v4, v5}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 19
    :cond_6
    iget v2, p0, Les/a70;->E:I

    if-nez v2, :cond_7

    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    invoke-static {v2}, Les/a70;->b(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_7

    .line 20
    iget-object v2, p0, Les/a70;->G:Ljava/util/LinkedList;

    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    goto :goto_2

    .line 21
    :cond_7
    iget v2, p0, Les/a70;->E:I

    if-ne v2, v3, :cond_8

    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    invoke-static {v2}, Lcom/estrongs/android/util/n0;->Q(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_8

    .line 22
    iget-object v2, p0, Les/a70;->G:Ljava/util/LinkedList;

    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 23
    :cond_8
    :goto_2
    invoke-virtual {p0}, Les/s80;->z()Z

    move-result v2

    if-eqz v2, :cond_9

    return-void

    .line 24
    :cond_9
    invoke-virtual {v0}, Ljava/util/LinkedList;->size()I

    move-result v2

    if-lez v2, :cond_a

    .line 25
    invoke-direct {p0, v0}, Les/a70;->b(Ljava/util/List;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_a
    :goto_3
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_0

    :catch_0
    :cond_b
    return-void
.end method

.method public static b(Ljava/lang/String;)Z
    .locals 1

    .line 26
    invoke-static {p0}, Lcom/estrongs/android/util/n0;->k(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-static {p0}, Lcom/estrongs/android/util/h0;->y1(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    invoke-static {p0}, Lcom/estrongs/android/util/h0;->U1(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    const-string v0, ".m3u"

    invoke-virtual {p0, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result p0

    if-nez p0, :cond_1

    :cond_0
    const/4 p0, 0x1

    goto :goto_0

    :cond_1
    const/4 p0, 0x0

    :goto_0
    return p0
.end method


# virtual methods
.method public C()Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Les/a70;->G:Ljava/util/LinkedList;

    return-object v0
.end method

.method public y()Z
    .locals 2

    .line 1
    iget-object v0, p0, Les/a70;->F:Ljava/util/List;

    invoke-direct {p0, v0}, Les/a70;->b(Ljava/util/List;)V

    .line 2
    iget-object v0, p0, Les/a70;->G:Ljava/util/LinkedList;

    new-instance v1, Les/a70$a;

    invoke-direct {v1, p0}, Les/a70$a;-><init>(Les/a70;)V

    invoke-static {v0, v1}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    .line 3
    invoke-static {}, Les/wo;->j()Les/wo;

    move-result-object v0

    invoke-virtual {v0}, Les/wo;->a()Les/to;

    const/4 v0, 0x1

    return v0
.end method
